﻿using System.Windows.Automation;

namespace ProdControls.Interfaces
{
    public interface IToggle
    {
        /// <summary>
        ///   Gets or sets the ToggleState of the control.
        /// </summary>
        /// <value> The <see cref="ToggleState" /> to set. </value>
        ToggleState ToggleState { get; set; }

        /// <summary>
        ///   Toggles this control to the next ToggleState
        /// </summary>
        /// <remarks>
        ///   A control must cycle through its ToggleState in this order: On, Off and if supported, Indeterminate.
        /// </remarks>
        void Toggle();
    }
}